team.SetUp(1, "White", Color(255, 255, 255, 255)) -- TEAM RED, It appear in scores
team.SetUp(2, "Red", Color(255, 100, 100, 255)) -- TEAM RED, It appear in scores
team.SetUp(3, "Green", Color(0, 255, 64, 255)) -- TEAM RED, It appear in scores
team.SetUp(4, "Blue", Color(0, 255, 255, 255)) -- TEAM RED, It appear in scores
//White: default, theres no teamplay here, pure deathmatch.
//Other teams is teams like Team Fortress etc.

GM.Name 	= "Snowfight!"
GM.Author 	= "Herover"
GM.Email 	= "N/A"
GM.Website 	= "Found stuff at Garrysmod.org"

function GM:Initialize()

	self.BaseClass.Initialize( self )
	
end

/*---------------------------------------------------------
   Map Rotation system By gamerdude, this is the HUD
---------------------------------------------------------*/

//function DrawHud()	Not In Use
//  	draw.WordBox( 10, ScrW() - 100, ScrH() - 150, "Timeleft: " .. GetGlobalString("MapRotateCountDownFormat"), "Default",Color(0,0,0,100), Color(255,255,255,255))
//end
//hook.Add("HUDPaint", "HUD_TEST", DrawHud)

/*---------------------------------------------------------
   Friendly Fire is off by default
---------------------------------------------------------*/

function GM:PlayerShouldTakeDamage( ply, attacker )
	if attacker:IsPlayer() and GetGlobalInt("FriendlyFire")=="false" then
		if (ply:Team() == attacker:Team() and ply:Team()!=1 ) then
			return false
		else
			return true
		end
	else
		return true
	end
end
